package com.lagou.edu.controller;

import com.lagou.service.HelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/demo")
public class demoController {

    @Reference
    private HelloService helloService;

    @RequestMapping("/index")
    public String index(){
        return helloService.sayHello("zhangsan",0);
    }
}
